package com.happy_hao.msg.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.Serializable;
import java.util.List;

@Data
public class NoPeriodStartRequest implements Serializable {
    @NotBlank(message = "fromEmail不能为空")
    private String fromEmail;

    @NotBlank(message = "to不能为空")
    private String toEmail;

    @NotBlank(message = "subject不能为空")
    private String subject;
    @NotBlank(message = "content不能为空")
    private String content;

    @NotEmpty(message = "times不能为空")
    private List<Integer> times;

}
